package com.anlu.cloud.notification.service;

import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.anlu.cloud.common.Page;
import com.anlu.cloud.notification.model.Sms;

import java.util.Map;

public interface SmsService {
    void save(Sms sms, Map<String, String> params);

    void update(Sms sms);

    Sms findById(Long id);

    Page<Sms> findSms(Map<String, Object> params);

    /**
     * 发送短信
     */
    SendSmsResponse sendSmsMsg(Sms sms);
}
